package com.design.behavioral.chainOfResponsibility;
/**
 * 部门经理
 */
public class Manager extends LeaveHandler{
    public Manager(){
        super(LeaveHandler.NUM_THREE, LeaveHandler.NUM_SEVEN);
    }

    @Override
    void handlerLeave(LeaveRequest leaveRequest) {
        System.out.println(leaveRequest.getName() + "请假"+ leaveRequest.getNum() + "天");
        System.out.println("部门经理审批：同意。");
    }
}
